package com.xueyi.system.usageRecord.service.impl;

import com.xueyi.system.usageRecord.domain.query.UsageRecordQuery;
import com.xueyi.system.usageRecord.domain.dto.UsageRecordDto;
import com.xueyi.system.usageRecord.service.IUsageRecordService;
import com.xueyi.system.usageRecord.manager.IUsageRecordManager;
import com.xueyi.common.web.entity.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 使用记录管理 服务层处理
 *
 * @author zlf
 */
@Service
public class UsageRecordServiceImpl extends BaseServiceImpl<UsageRecordQuery, UsageRecordDto, IUsageRecordManager> implements IUsageRecordService {

    /**
     * 查询使用记录对象列表 | 数据权限 | 附加数据
     *
     * @param usageRecord 使用记录对象
     * @return 使用记录对象集合
     */
    @Override
    //@DataScope(userAlias = "createBy", mapperScope = {"UsageRecordMapper"})
    public List<UsageRecordDto> selectListScope(UsageRecordQuery usageRecord) {
        return baseManager.selectListExtra(usageRecord);
    }

}